home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #109.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  1.8 KB  |  74 lines

  1. class ┬º#109┬º extends MovieClip
  2. {
  3.    var speed = 6;
  4.    var letterWidth = 11;
  5.    function ┬º#109┬º()
  6.    {
  7.       super();
  8.       this["#245"] = 0;
  9.       this.marqueeWidth = this._width;
  10.       this["#50"] = new Array();
  11.       this["#82"]();
  12.    }
  13.    function ┬º#82┬º()
  14.    {
  15.       this["#45"]();
  16.    }
  17.    function ┬º#45┬º()
  18.    {
  19.       this["#312"] = "";
  20.       var _loc2_ = undefined;
  21.       while(this["#50"].length > 0)
  22.       {
  23.          _loc2_ = this["#50"].pop();
  24.          _loc2_.removeMovieClip();
  25.       }
  26.    }
  27.    function ┬º#254┬º(┬º#472┬º)
  28.    {
  29.       this["#312"] = ┬º#472┬º;
  30.       this["#45"]();
  31.       var _loc2_ = 0;
  32.       while(_loc2_ < ┬º#472┬º.length)
  33.       {
  34.          this.addLetter(┬º#472┬º.charAt(_loc2_));
  35.          _loc2_ = _loc2_ + 1;
  36.       }
  37.    }
  38.    function addLetter(letter)
  39.    {
  40.       var _loc3_ = this.getNextHighestDepth();
  41.       var _loc2_ = this.attachMovie("Scoreboard Letter MC","letter_" + _loc3_ + "_" + letter,_loc3_);
  42.       _loc2_.setColor(eval("#5")["#81"]);
  43.       _loc2_.draw(letter);
  44.       _loc2_._x = this.marqueeWidth + this["#50"].length * this.letterWidth;
  45.       this["#50"].push(_loc2_);
  46.    }
  47.    function setVisible(┬º#473┬º)
  48.    {
  49.       if(!┬º#473┬º)
  50.       {
  51.          this["#45"]();
  52.          return undefined;
  53.       }
  54.       if(this["#50"].length > 0)
  55.       {
  56.          if(this["#245"] + 25 < getTimer())
  57.          {
  58.             this["#245"] = getTimer();
  59.             var _loc3_ = this["#50"].length;
  60.             var _loc2_ = 0;
  61.             while(_loc2_ < _loc3_)
  62.             {
  63.                this["#50"][_loc2_]._x -= this.speed;
  64.                _loc2_ = _loc2_ + 1;
  65.             }
  66.             if(this["#50"][_loc3_ - 1]._x < - this["#50"][_loc3_ - 1]._width)
  67.             {
  68.                this["#45"]();
  69.             }
  70.          }
  71.       }
  72.    }
  73. }
  74.